<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Cluster Aggregation: ClusterAggregation.Clusterers.CKMeansImpl Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Cluster Aggregation
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Clustering, made simple</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_cluster_aggregation_1_1_clusterers_1_1_c_k_means_impl.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">ClusterAggregation.Clusterers.CKMeansImpl Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for ClusterAggregation.Clusterers.CKMeansImpl:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_cluster_aggregation_1_1_clusterers_1_1_c_k_means_impl.png" usemap="#ClusterAggregation.Clusterers.CKMeansImpl_map" alt=""/>
  <map id="ClusterAggregation.Clusterers.CKMeansImpl_map" name="ClusterAggregation.Clusterers.CKMeansImpl_map">
<area href="interface_cluster_aggregation_1_1_clusterers_1_1_i_clusterer.html" alt="ClusterAggregation.Clusterers.IClusterer" shape="rect" coords="0,0,291,24"/>
<area href="class_cluster_aggregation_1_1_clusterers_1_1_c_studying_k_means.html" alt="ClusterAggregation.Clusterers.CStudyingKMeans" shape="rect" coords="0,112,291,136"/>
</map>
 </div></div>

<p><a href="class_cluster_aggregation_1_1_clusterers_1_1_c_k_means_impl-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa6800f8de6b02782f62d8eaaf4d5a9c1"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_cluster_aggregation_1_1_data_sets_1_1_c_partition.html">CPartition</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cluster_aggregation_1_1_clusterers_1_1_c_k_means_impl.html#aa6800f8de6b02782f62d8eaaf4d5a9c1">cluster</a> (<a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html">AData</a>[] arg, <a class="el" href="interface_cluster_aggregation_1_1_datum_1_1_i_similarity.html">ISimilarity</a> distFunc, int k)</td></tr>
<tr class="memitem:acf1d30a7e4a436be176a61de806c2976"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cluster_aggregation_1_1_clusterers_1_1_c_k_means_impl.html#acf1d30a7e4a436be176a61de806c2976">CKMeansImpl</a> (int numOfIterations=1500)</td></tr>
<tr class="memitem:ae86cb7209b3cd951c4474abf058a8a62"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cluster_aggregation_1_1_clusterers_1_1_c_k_means_impl.html#ae86cb7209b3cd951c4474abf058a8a62">recalculateCentroids</a> (<a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html">AData</a>[] arg)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>simple k-means </p>

<p>Definition at line <a class="el" href="_c_k_means_impl_8cs_source.html#l00013">13</a> of file <a class="el" href="_c_k_means_impl_8cs_source.html">CKMeansImpl.cs</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="acf1d30a7e4a436be176a61de806c2976"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_cluster_aggregation_1_1_clusterers_1_1_c_k_means_impl.html#acf1d30a7e4a436be176a61de806c2976">ClusterAggregation.Clusterers.CKMeansImpl.CKMeansImpl</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numOfIterations</em> = <code>1500</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>basic constructor </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">numOfIterations</td><td>= 1500 (int) [IN] indicates the maximum number of iterations for k-means. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_c_k_means_impl_8cs_source.html#l00078">78</a> of file <a class="el" href="_c_k_means_impl_8cs_source.html">CKMeansImpl.cs</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aa6800f8de6b02782f62d8eaaf4d5a9c1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_cluster_aggregation_1_1_data_sets_1_1_c_partition.html">CPartition</a> <a class="el" href="class_cluster_aggregation_1_1_clusterers_1_1_c_k_means_impl.html#aa6800f8de6b02782f62d8eaaf4d5a9c1">ClusterAggregation.Clusterers.CKMeansImpl.cluster</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html">AData</a>[]&#160;</td>
          <td class="paramname"><em>arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="interface_cluster_aggregation_1_1_datum_1_1_i_similarity.html">ISimilarity</a>&#160;</td>
          <td class="paramname"><em>distFunc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This function is the API to cluster data (arg) with the distance function (distFunc) into k different clusters.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">arg</td><td>(AData) [IN], input data. </td></tr>
    <tr><td class="paramname">distFunc</td><td>(ISimilarity) [IN], the data will be clustered using this distance function. </td></tr>
    <tr><td class="paramname">k</td><td>(int) [IN], the number of clusterings. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>CPartition the clustered dataset as a partition. </dd></dl>

<p>Implements <a class="el" href="interface_cluster_aggregation_1_1_clusterers_1_1_i_clusterer.html#a17d75056457b54b6a22ad925b92cef9a">ClusterAggregation.Clusterers.IClusterer</a>.</p>

<p>Reimplemented in <a class="el" href="class_cluster_aggregation_1_1_clusterers_1_1_c_studying_k_means.html#a0712fb2aec817f15394d7a1ca1c8de4e">ClusterAggregation.Clusterers.CStudyingKMeans</a>.</p>

<p>Definition at line <a class="el" href="_c_k_means_impl_8cs_source.html#l00040">40</a> of file <a class="el" href="_c_k_means_impl_8cs_source.html">CKMeansImpl.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ae86cb7209b3cd951c4474abf058a8a62"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_cluster_aggregation_1_1_clusterers_1_1_c_k_means_impl.html#ae86cb7209b3cd951c4474abf058a8a62">ClusterAggregation.Clusterers.CKMeansImpl.recalculateCentroids</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_cluster_aggregation_1_1_datum_1_1_a_data.html">AData</a>[]&#160;</td>
          <td class="paramname"><em>arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>calculate centers of clusteroids </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">arg</td><td>(AData[]) [IN] </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_c_k_means_impl_8cs_source.html#l00087">87</a> of file <a class="el" href="_c_k_means_impl_8cs_source.html">CKMeansImpl.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_c_k_means_impl_8cs_source.html">CKMeansImpl.cs</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_cluster_aggregation.html">ClusterAggregation</a>      </li>
      <li class="navelem"><a class="el" href="namespace_cluster_aggregation_1_1_clusterers.html">Clusterers</a>      </li>
      <li class="navelem"><a class="el" href="class_cluster_aggregation_1_1_clusterers_1_1_c_k_means_impl.html">CKMeansImpl</a>      </li>

    <li class="footer">Generated on Sun Jun 10 2012 19:35:08 for Cluster Aggregation by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
